package com.itheima.service;

import com.itheima.dto.QuestionsAddDto;
import com.itheima.dto.QuestionsListDto;
import com.itheima.pojo.Questions;
import com.itheima.vo.PageResultVO;
import com.itheima.vo.questions.QuestionsVO;

public interface QuestionsService {
    PageResultVO<QuestionsVO> findPage(QuestionsListDto questionsListDto);

    String delete(Integer id);

    Integer add(QuestionsAddDto questionsAddDto);

    QuestionsVO findById(Integer id);

    String edit(QuestionsAddDto questionsAddDto);

    String setChoice(Integer id, Integer publishState);

    PageResultVO<QuestionsVO> findChoicePage(QuestionsListDto questionsListDto);

    PageResultVO<QuestionsVO> findRandomsByKeyword(Integer page, Integer pagesize, String keyword);

    String setChoice1(Integer id, Integer choiceState);

    String setCheck(Integer id, Questions questions);
}
